package com.cloud.xtools.api.user.client;

import com.cloud.xtools.api.user.domain.resource.UserResource;
import com.cloud.xtools.common.response.ResponseBody;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestHeader;

@FeignClient(name = "user")
public interface UserClient {
    @GetMapping("/api/user/admin/remote/user/{id}/info")
    ResponseBody<UserResource> userInfoById(@PathVariable("id") Long id);

    @GetMapping("/api/user/admin/remote/user/info")
    ResponseBody<UserResource> userInfo();
}
